import { createApp } from "vue";
import App from "./App.vue";
import pinia from "@/stores";
// 导入nprogress样式
import "nprogress/nprogress.css";
// 导入element样式
import "element-plus/dist/index.css";
// 导入element图标
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
// 导入样式
import "./styles/main.scss";
// 导入路由
import router from "./router";
// 导入自定义指令
import directives from "./directives";
// npm
const app = createApp(App);
// 注册element图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
// app.use(vue3JsonExcel)
app.use(pinia);
app.use(router);
app.use(directives);
app.mount("#app");
